﻿using My.Admin.Dto.User;
using My.Admin.Model.System;
using My.Core.DynamicProxy;
using My.Core.Service.IService;

namespace My.Admin.Service.System.IService
{
	public interface ISysUserRoleService : IBaseService<SysUserRole>, ITransientAutoInject
	{
		public Task DeleteUserRoleByRoleId(long roleId);
		public Task DeleteUserRoleByUserId(long userId);
		public Task<List<SysRole>> GetUserRoleList(long userId);
		public Task<List<long>> GetUserRoleIdList(long userId);
		public  Task<List<long>> GetUserIdList(long roleId);
		public Task GrantUserRole(UserRoleInput input);

	}
}
